home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / System 7.0 Samples / AEObject-Edition1.0.2 Sample / Macros.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-18  |  1.1 KB  |  28 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2.  *
  3.  *  Apple Developer Technical Support
  4.  *
  5.  *  
  6.  *
  7.  *  Program:    AEObject-Edition Sample
  8.  *  File:       Macros.h -    C Source
  9.  *
  10.  *  by:         C.K. Haun <TR>
  11.  *
  12.  *  Copyright © 1991-1992 Apple Computer, Inc.
  13.  *  All rights reserved.
  14.  *
  15.  *------------------------------------------------------------------------------
  16.  * This file contains all the C Macros I use in this program.  If you find 
  17.  * the macros hard to read (instead of easier, which is the reason for the 
  18.  * macro) do a global search and replace with the values here 
  19.  * all macros start with a small 'm' 
  20.  * I don't use many, never trusted macros..... 
  21. *----------------------------------------------------------------------------*/
  22. #ifndef __MACROS__
  23. #define __MACROS__
  24. #define mDispatch(handle,routine,paramter) (ProcPtr)((*handle)->routine)(paramter)
  25. #define mAEErrorDisplay(A,B) if(B){AddAEText("\p \nAppleEvent error ");AddAEText(A);AddAENum(B);AEErrorText(B);}
  26. #define mVerboseOutput(A)    if(gPreferences.verboseAE)AddAEText(A);
  27. #endif
  28.